package com.flyoil.petromp.entity.entity_me;

import com.flyoil.petromp.base.BaseEntity;

import java.util.List;

/**
 * Created by songzhiiyn on 2017/10/9.
 * 我的消息的实体类
 */

public class MyMessageEntity extends BaseEntity {
    /**
     * data : {"list":[{"id":4,"messageDetail":"这是一条已读消息"},{"id":3,"messageDetail":"这是一条审批消息"},{"id":2,"messageDetail":"这是一条已读消息"},{"id":1,"messageDetail":"这是一条审批消息"}],"total":4,"pageNumber":1,"pageSize":20}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * list : [{"id":4,"messageDetail":"这是一条已读消息"},{"id":3,"messageDetail":"这是一条审批消息"},{"id":2,"messageDetail":"这是一条已读消息"},{"id":1,"messageDetail":"这是一条审批消息"}]
         * total : 4
         * pageNumber : 1
         * pageSize : 20
         */

        private int total;
        private int pageNumber;
        private int pageSize;
        private List<ListBean> list;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPageNumber() {
            return pageNumber;
        }

        public void setPageNumber(int pageNumber) {
            this.pageNumber = pageNumber;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {

            /**
             * id : 0
             * isRead : true
             * messageDetail : string
             * receiptId : 0
             * sendMessageTimeLabel : string
             * type : string
             */

            private int id;//消息id
            private boolean isRead;//是否已读
            private String messageDetail;//消息详情
            private int receiptId;//单据id
            private String sendMessageTimeLabel;//发送消息时间
            private String type = "";//根据不同消息跳转不同计划或者服务详情等
            private boolean canSelectck = false;//是否能选择
            private boolean selected = false;//是否选中

            public boolean isRead() {
                return isRead;
            }

            public void setRead(boolean read) {
                isRead = read;
            }

            public boolean isCanSelectck() {
                return canSelectck;
            }

            public void setCanSelectck(boolean canSelectck) {
                this.canSelectck = canSelectck;
            }

            public boolean isSelected() {
                return selected;
            }

            public void setSelected(boolean selected) {
                this.selected = selected;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public boolean isIsRead() {
                return isRead;
            }

            public void setIsRead(boolean isRead) {
                this.isRead = isRead;
            }

            public String getMessageDetail() {
                return messageDetail;
            }

            public void setMessageDetail(String messageDetail) {
                this.messageDetail = messageDetail;
            }

            public int getReceiptId() {
                return receiptId;
            }

            public void setReceiptId(int receiptId) {
                this.receiptId = receiptId;
            }

            public String getSendMessageTimeLabel() {
                return sendMessageTimeLabel;
            }

            public void setSendMessageTimeLabel(String sendMessageTimeLabel) {
                this.sendMessageTimeLabel = sendMessageTimeLabel;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }
        }
    }
}
